package com.zqxq.lottery.mapper.user;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.zqxq.lottery.entity.bo.user.UserCashBO;
import com.zqxq.lottery.entity.bo.user.UserCashSearchBO;
import com.zqxq.lottery.entity.po.user.UserCashPO;
import com.zqxq.lottery.entity.vo.expert.CommissionVO;
import com.zqxq.lottery.entity.vo.user.UserCashVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description ：
 * @Author ： 解风
 * @Date ： 2018/03/13 14:39
 */
@Component(value = "userCashMapper")
public interface UserCashMapper extends BaseMapper<UserCashPO> {

    List<UserCashVO> queryPage(Page page, UserCashBO search);

    List<UserCashVO> queryPage(UserCashSearchBO search);

    List<UserCashVO> queryCommissionPage(Page page, UserCashBO search);

    List<UserCashVO> queryPageCZ(Page page, UserCashBO search);

    List<UserCashVO> queryPageTX(Page page, UserCashBO search);

    UserCashVO getTX(Long id);

    Integer getDrawCashCount(@Param("userId") Long userId);

    /**
     * 跟单-我的佣金信息
     * @param user_id
     * @return
     */
    CommissionVO commissionInfo(Long user_id);

}
